package com.jichangxiu.system.entity.bo;

import com.jichangxiu.system.entity.po.SysPost;
import com.jichangxiu.system.entity.po.SysUserPost;
import com.jichangxiu.system.entity.vo.SysPostVo;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * SysPostBo:
 *
 * @author JiChangXiu
 * @create 2024-06-28 13:44:31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@AutoMappers({
        @AutoMapper(target = SysPost.class, reverseConvertGenerate = false),
        @AutoMapper(target = SysPostVo.class, reverseConvertGenerate = false)
})
public class SysPostBo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private String id;

    /**
     * 编码
     */
    private String no;

    /**
     * 标识
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 数据范围
     */
    private String scope;

    /**
     * 顺序
     */
    private BigDecimal sort;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否启用
     */
    private Boolean enabled;

    /**
     * 启用者
     */
    private String enabledBy;

    /**
     * 启用时间
     */
    private Date enabledTime;

    /**
     * 岗位用户关联列表
     */
    private List<SysUserPost> sysUserPostList;

}